﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CtefCrmImport.Common.Interfaces;

namespace CtefCrmImport.Common
{
    public class StringBufferLogger : ILogger
    {
        private readonly StringBuilder buffer = new StringBuilder();

        public void Log(string format, params object[] args)
        {
            buffer.AppendFormat(format, args);
            buffer.AppendLine();
        }

        public void Reset()
        {
            buffer.Clear();
        }

        public string GetFullLog()
        {
            return buffer.ToString();
        }

        public void Flush()
        {
        }
    }
}
